TEMPLATE = app
TARGET = cxvisionaix2023
QT +=   serialbus serialport testlib widgets multimedia texttospeech
CONFIG += c++11
CONFIG += exceptions
CONFIG += -O3 -fopenmp

include(./ttsasr/spectrum.pri)


QMAKE_CXXFLAGS += -std=c++0x
DEFINES += USE_CAM

DEFINES += NO_ICONV


qtHaveModule(opengl): QT += opengl



win32:LIBS += -Lhk\Libraries\win32\ -lMvCameraControl




INCLUDEPATH += ./ttsasr/ttsinclude
INCLUDEPATH += ./ttsasr/ttssrc/header
INCLUDEPATH += ./ttsasr/asrinclude
INCLUDEPATH += ./ttsasr/asrsrc
INCLUDEPATH += ./ttsasr/asrsrc/util
INCLUDEPATH += ./ttsasr/asrsrc/im
INCLUDEPATH += ./ttsasr/3rdparty/fftreal

INCLUDEPATH += cxpython2.7\Include
INCLUDEPATH += spectrum\3rdparty\fftreal
INCLUDEPATH += spectrum
INCLUDEPATH += codecs
INCLUDEPATH += serialport\slave
INCLUDEPATH += cximage

win32:INCLUDEPATH += hk
win32:INCLUDEPATH += hk\Includes
####

INCLUDEPATH +=   \
                cxparser \
                cxpython \
                AIFSM \
                AI \
                diagram \
                cam \
                src \
                qml \
                calibview
 
 win32: HEADERS += hk/mainwindow.h
 win32: HEADERS += hk/CamRun.h
 win32: HEADERS += hk/MyCamera.h
 win32: HEADERS += hk/MvCamera.h
 win32: HEADERS += hk/widget.h
 win32: HEADERS += hk/widget.ui
 win32: HEADERS += hk/workthread.h
 win32: HEADERS += hk/qt_hik.h

HEADERS +=  \
    cximage/findcircle.h \
    cximage/imagetype.h \
    cximage/parsersharetool.h \
    cximage/stringmap.h \
    p2p/slavethread.h \
    serialport/slave/serialportslavedialog.h \
    ethnet/plc.h \
    cximage/imagebase.h \
    cximage/imageroi.h \
    cximage/imagelist.h \
    cximage/CONST_COLOR_ISO_AtanAngle.H \
    cximage/CONST_COLOR_ISO_SqrtX.H \
    cximage/CONST_PointDistancetable.H \
    cximage/ImageParserClass.h \
    cximage/shape.h \
    cximage/shapecommands.h \
    cximage/visionmanager.h \
    cximage/CONST_float_vect.H \
    cximage/findline.h \
    cximage/shapebase.h \
    cximage/backimagemanager.h \
    cximage/findobject.h \
    cximage/fastmatch.h \
    cximage/grid.h \
    cximage/gridobject.h \
    cxparser/muParserTreeNode.h \
    cxparser/muParserTokenReader.h \
    cxparser/muParserToken.h \
    cxparser/muParserTest.h \
    cxparser/muParserStrClassMap.h \
    cxparser/muParserStack.h \
    cxparser/muParserRun.h \
    cxparser/muParserInt.h \
    cxparser/muParserFixes.h \
    cxparser/muParserError.h \
    cxparser/muParserDLL.h \
    cxparser/muParserDef.h \
    cxparser/muparserClassReader.h \
    cxparser/muParserClassFunctionReader.h \
    cxparser/muParserClass.h \
    cxparser/muParserCallback.h \
    cxparser/muParserBytecode.h \
    cxparser/muParserBase.h \
    cxparser/muParser.h \
    cxparser/LeakWatcher.h \
    cxpython/cxpythontest.h \
    cxpython/ffpython.h \
    p2p/CRC/crc32.c.h \
    p2p/CRC/zconf.h \
    p2p/CRC/zutil.h \
    p2p/dialog.h \
    p2p/connection.h \
    p2p/connection_msg.h \
    p2p/dialog.h \
    p2p/codeeditor.h \
    p2p/codeeditor.h \
    p2p/runthread.h \
    download/textprogressbar.h \
    download/downloadmanager.h \
    AIFSM/AIControl.h \
    AIFSM/Control.h \
    AIFSM/FStateApproach.h \
    AIFSM/FuSM.h \
    AIFSM/FuSMAIControl.h \
    AIFSM/FuSMMachine.h \
    AIFSM/FuSMState.h \
    AIFSM/AIControl.h \
    AI/stringai.h \
    diagram/arrow.h \
    diagram/diagramitem.h \
    diagram/diagramscene.h \
    diagram/diagramtextitem.h \
    diagram/diagramtab.h \
    diagram/arrowi.h \
    p2p/norwegianwoodstyle.h \
    diagram/diagrammainwindow.h

win32:SOURCES += hk/mainwindow.cpp
win32:SOURCES += hk/CamRun.cpp
win32:SOURCES += hk/qt_hik.cpp
win32:SOURCES += hk/MvCamera.cpp
win32:SOURCES += hk/widget.cpp
win32:SOURCES += hk/workthread.cpp
win32:SOURCES += hk/MyCamera.cpp


 
 
SOURCES += \
    cximage/findcircle.cpp \
    cximage/parsersharetool.cpp \
    cximage/stringmap.cpp \
    main.cpp \
    p2p/slavethread.cpp \
    serialport/slave/serialportslavedialog.cpp \
    ethnet/plc.cpp \
    cximage/imagebase.cpp \
    cximage/imageroi.cpp \
    cximage/imagelist.cpp \
    cximage/ImageParserClass.cpp \
    cximage/shape.cpp \
    cximage/shapecommands.cpp \
    cximage/visionmanager.cpp \
    cximage/findline.cpp \
    cximage/shapebase.cpp \
    cximage/backimagemanager.cpp \
    cximage/findobject.cpp \
    cximage/fastmatch.cpp \
    cximage/grid.cpp \
    cximage/gridobject.cpp \
    p2p/dialog.cpp \
    p2p/connection.cpp \
    p2p/connection_msg.cpp \
    p2p/codeeditor.cpp \
    p2p/runthread.cpp \
    cxparser/muParserTreeNode.cpp \
    cxparser/muparsertokenreader.cpp \
    cxparser/muparsertest.cpp \
    cxparser/muParserStrClassMap.cpp \
    cxparser/muParserRun.cpp \
    cxparser/muParserInt.cpp \
    cxparser/muParserError.cpp \
    cxparser/muparserClassReader.cpp \
    cxparser/muParserClassFunctionReader.cpp \
    cxparser/muParserClass.cpp \
    cxparser/muParserCallback.cpp \
    cxparser/muParserBytecode.cpp \
    cxparser/muParserBase.cpp \
    cxparser/muParser.cpp \
    download/textprogressbar.cpp \
    download/downloadmanager.cpp \
    AIFSM/FStateApproach.cpp \
    AIFSM/FuSMAIControl.cpp \
    AIFSM/FuSMMachine.cpp \
    AIFSM/FuSMState.cpp \
    AIFSM/AIControl.cpp \
    AI/stringai.cpp \
    diagram/arrow.cpp \
    diagram/diagramitem.cpp \
    diagram/diagramscene.cpp \
    diagram/diagramtextitem.cpp \
    diagram/diagramtab.cpp \
    diagram/arrowi.cpp \
    p2p/norwegianwoodstyle.cpp \
    diagram/diagrammainwindow.cpp

SOURCES += modbustcp/historymessagedialog.cpp \
    modbustcp/inputdialog.cpp \
    modbustcp/modbuswidget.cpp

HEADERS  += modbustcp/historymessagedialog.h \
    modbustcp/inputdialog.h \
    modbustcp/modbuswidget.h

FORMS    += modbustcp/widget.ui \
    modbustcp/historymessagedialog.ui \
    modbustcp/inputdialog.ui

win32: FORMS += hk/mainwindow.ui
FORMS += \
    certificateerrordialog.ui \
    master/masterwindow.ui \
    master/settingsdialog.ui \
    passworddialog.ui \
    downloadmanagerwidget.ui \
    downloadwidget.ui

RESOURCES +=   additional/additional.qrc \
    backgrounds/backgrounds.qrc \
    calibview/calib.qrc \
    icons/icons.qrc \
    diagramscene.qrc \
    spectrum/spectrum.qrc

 
# install
SOURCES +=  ./ttsasr/CNwidget.cpp \
          ./ttsasr/mainwindow.cpp \
          ./ttsasr/spectrumapp/engine.cpp \
          ./ttsasr/spectrumapp/frequencyspectrum.cpp \
          ./ttsasr/spectrumapp/levelmeter.cpp \
          ./ttsasr/spectrumapp/mainwidget.cpp \
          ./ttsasr/spectrumapp/progressbar.cpp \
          ./ttsasr/spectrumapp/settingsdialog.cpp \
          ./ttsasr/spectrumapp/spectrograph.cpp \
          ./ttsasr/spectrumapp/spectrumanalyser.cpp \
          ./ttsasr/spectrumapp/spectrumutils.cpp \
          ./ttsasr/spectrumapp/tonegenerator.cpp \
          ./ttsasr/spectrumapp/tonegeneratordialog.cpp \
          ./ttsasr/spectrumapp/waveform.cpp \
          ./ttsasr/spectrumapp/wavfile.cpp \
          ./ttsasr/3rdparty/fftreal/Array.hpp \
          ./ttsasr/3rdparty/fftreal/DynArray.hpp \
          ./ttsasr/3rdparty/fftreal/FFTRealFixLen.hpp \
          ./ttsasr/3rdparty/fftreal/FFTRealPassDirect.hpp \
          ./ttsasr/3rdparty/fftreal/FFTRealPassInverse.hpp \
          ./ttsasr/3rdparty/fftreal/FFTRealSelect.hpp \
          ./ttsasr/3rdparty/fftreal/FFTRealUseTrigo.hpp \
          ./ttsasr/3rdparty/fftreal/OscSinCos.hpp \
          ./ttsasr/3rdparty/fftreal/fftreal_wrapper.cpp \
          ./ttsasr/ttssrc/tts/tts.cpp \
          ./ttsasr/asrsrc/asr/asr.cpp 

 
HEADERS += ./ttsasr/mainwindow.h \
    ./ttsasr/CNwidget.h \
    ./ttsasr/asrinclude/asr.h \
./ttsasr/spectrumapp/engine.h \
./ttsasr/spectrumapp/frequencyspectrum.h \
./ttsasr/spectrumapp/levelmeter.h \
./ttsasr/spectrumapp/mainwidget.h \
./ttsasr/spectrumapp/progressbar.h \
./ttsasr/spectrumapp/settingsdialog.h \
./ttsasr/spectrumapp/spectrograph.h \
./ttsasr/spectrumapp/spectrum.h \
./ttsasr/spectrumapp/spectrumanalyser.h \
./ttsasr/spectrumapp/spectrumutils.h \
./ttsasr/spectrumapp/tonegenerator.h \
./ttsasr/spectrumapp/tonegeneratordialog.h \
./ttsasr/spectrumapp/waveform.h \
./ttsasr/spectrumapp/wavfile.h \
./ttsasr/3rdparty/fftreal/Array.h \
./ttsasr/3rdparty/fftreal/DynArray.h \
./ttsasr/3rdparty/fftreal/def.h \
./ttsasr/3rdparty/fftreal/fftreal_wrapper.h \
./ttsasr/3rdparty/fftreal/FFTRealFixLen.h \
./ttsasr/3rdparty/fftreal/FFTRealFixLenParam.h \
./ttsasr/3rdparty/fftreal/FFTRealPassDirect.h \
./ttsasr/3rdparty/fftreal/FFTRealPassInverse.h \
./ttsasr/3rdparty/fftreal/FFTRealSelect.h \
./ttsasr/3rdparty/fftreal/FFTRealUseTrigo.h \
./ttsasr/3rdparty/fftreal/OscSinCos.h \
    ./ttsasr/ttsinclude/tts.h 